package com.gitee.limaozhi.socket.lesson03.example1;

/**
 * @author hzlimaozhi
 * @date 2019/08/26 15:12
 */
public class ServerLogicHandler {

    public static String getResponse(String request) {
        if (request.contains("你好")) {
            return "你好！";
        } else if (request.contains("温度")) {
            return "36度。";
        } else if (request.contains("天气")) {
            return "晴天。";
        } else if (request.contains("拜拜")) {
            return "拜拜！";
        } else {
            return "说人话";
        }
    }

}
